package org.rasterfun.language2

import num.{Num, NumConstant}

/**
 * Object with implicit conversations.
 */
object Conversions {
  implicit def float2num(value: Float): NumConstant = NumConstant(value)
  implicit def double2num(value: Double): NumConstant = NumConstant(value.toFloat)
  implicit def int2num(value: Int): NumConstant = NumConstant(value.toFloat)
}
